class SectionController < ApplicationController
  before_filter :init_section

  def index
    @documents = Document.find :all
  end

  def show
    @document = Document.find_by_code params[:document_code]
  end

  private
    def init_section
      @section = Section.find_by_code params[:section_code]
    end
end
